package club.xshiwu.springcloud.service;
import org.springframework.stereotype.Component;

// @Component: 实例化进spring容器，相当于<bean id = "paymentFallbackService" class = "PaymentFallbackService"></bean>
// @Component,@Service,@Controller,@Repository注解的类，并把这些类纳入进spring容器中管理。
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfoOK(Integer id) {
        return "-------PaymentFallbackService fall back - paymentInfoOK，o(╥﹏╥)o";
    }

    @Override
    public String paymentInfoTimeOut(Integer id) {
        return "-------PaymentFallbackService fall back - paymentInfoTimeOut，o(╥﹏╥)o";
    }
}
